package com.ruoyi.outcome.service.impl;

import java.util.Collections;
import java.util.List;

import com.ruoyi.outcome.domain.vo.ResearchTechReportTrack;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.outcome.mapper.ResearchTechReportMapper;
import com.ruoyi.outcome.domain.ResearchTechReport;
import com.ruoyi.outcome.service.IResearchTechReportService;

/**
 * 技术报告管理Service业务层处理
 * 
 * @author zxh
 * @date 2025-01-06
 */
@Service
public class ResearchTechReportServiceImpl implements IResearchTechReportService 
{
    @Autowired
    private ResearchTechReportMapper researchTechReportMapper;

    /**
     * 查询技术报告管理
     * 
     * @param reportId 技术报告管理主键
     * @return 技术报告管理
     */
    @Override
    public ResearchTechReport selectResearchTechReportByReportId(Long reportId)
    {
        return researchTechReportMapper.selectResearchTechReportByReportId(reportId);
    }

    /**
     * 查询技术报告管理列表
     * 
     * @param researchTechReport 技术报告管理
     * @return 技术报告管理
     */
    @Override
    public List<ResearchTechReport> selectResearchTechReportList(ResearchTechReport researchTechReport)
    {
        return researchTechReportMapper.selectResearchTechReportList(researchTechReport);
    }

    /**
     * 新增技术报告管理
     * 
     * @param researchTechReport 技术报告管理
     * @return 结果
     */
    @Override
    public int insertResearchTechReport(ResearchTechReport researchTechReport)
    {
        return researchTechReportMapper.insertResearchTechReport(researchTechReport);
    }

    /**
     * 修改技术报告管理
     * 
     * @param researchTechReport 技术报告管理
     * @return 结果
     */
    @Override
    public int updateResearchTechReport(ResearchTechReport researchTechReport)
    {
        return researchTechReportMapper.updateResearchTechReport(researchTechReport);
    }

    /**
     * 批量删除技术报告管理
     * 
     * @param reportIds 需要删除的技术报告管理主键
     * @return 结果
     */
    @Override
    public int deleteResearchTechReportByReportIds(Long[] reportIds)
    {
        return researchTechReportMapper.deleteResearchTechReportByReportIds(reportIds);
    }

    /**
     * 删除技术报告管理信息
     * 
     * @param reportId 技术报告管理主键
     * @return 结果
     */
    @Override
    public int deleteResearchTechReportByReportId(Long reportId)
    {
        return researchTechReportMapper.deleteResearchTechReportByReportId(reportId);
    }

    @Override
    public int insertResearchTechAudit(ResearchTechReportTrack researchTechReportTrack) {
        return  researchTechReportMapper.insertResearchTechAudit(researchTechReportTrack);
    }

    @Override
    public List<ResearchTechReportTrack> selectResearchTechAuditList(Long reportId) {
        return  researchTechReportMapper.selectResearchTechAuditList(reportId);
    }
}
